OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007 Apple Inc. All rights reserved. |
3 * Copyright (C) 2012 Google Inc. All rights reserved. | 3 * Copyright (C) 2012 Google Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * | 8 * |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 } | 127 } |
128 | 128 |
129 return result; | 129 return result; |
130 } | 130 } |
131 | 131 |
132 /** | 132 /** |
133 * @return {string} | 133 * @return {string} |
134 */ | 134 */ |
135 String.regexSpecialCharacters = function() | 135 String.regexSpecialCharacters = function() |
136 { | 136 { |
137 return "^[]{}()\\.$*+?|-,"; | 137 return "^[]{}()\\.^$*+?|-,"; |
138 } | 138 } |
139 | 139 |
140 /** | 140 /** |
141 * @return {string} | 141 * @return {string} |
142 */ | 142 */ |
143 String.prototype.escapeForRegExp = function() | 143 String.prototype.escapeForRegExp = function() |
144 { | 144 { |
145 return this.escapeCharacters(String.regexSpecialCharacters()); | 145 return this.escapeCharacters(String.regexSpecialCharacters()); |
146 } | 146 } |
147 | 147 |
(...skipping 1386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1534 this._outgoingCallback(); | 1534 this._outgoingCallback(); |
1535 } | 1535 } |
1536 } | 1536 } |
1537 | 1537 |
1538 /** | 1538 /** |
1539 * @param {*} value | 1539 * @param {*} value |
1540 */ | 1540 */ |
1541 function suppressUnused(value) | 1541 function suppressUnused(value) |
1542 { | 1542 { |
1543 } | 1543 } |
OLD | NEW |