comparison src/org/tmatesoft/hg/repo/HgIgnore.java @ 343:58016b1b8554

HgIgnore: glob patterns not to match substring when not meant to
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Sat, 19 Nov 2011 01:07:27 +0100
parents 516b817415ba
children e732521a9eb4
comparison
equal deleted inserted replaced
342:516b817415ba 343:58016b1b8554
158 sb.append('|'); 158 sb.append('|');
159 continue; 159 continue;
160 } 160 }
161 sb.append(ch); 161 sb.append(ch);
162 } 162 }
163 sb.append("(?:/|$)");
163 return sb.toString(); 164 return sb.toString();
164 } 165 }
165 166
166 /** 167 /**
167 * @param path file or directory name in question 168 * @param path file or directory name in question