chore: clang-reformat
This commit is contained in:
@ -5,7 +5,7 @@ import {
|
||||
ComponentFactory,
|
||||
Injector,
|
||||
NgZone,
|
||||
Type
|
||||
Type
|
||||
} from '../index';
|
||||
|
||||
/**
|
||||
|
@ -1,10 +1,9 @@
|
||||
import {RegExpWrapper, StringWrapper} from '../src/facade/lang';
|
||||
|
||||
var _RE_SPECIAL_CHARS =
|
||||
['-', '[', ']', '/', '{', '}', '\\', '(', ')', '*', '+', '?', '.', '^', '$', '|'];
|
||||
['-', '[', ']', '/', '{', '}', '\\', '(', ')', '*', '+', '?', '.', '^', '$', '|'];
|
||||
var _ESCAPE_RE = RegExpWrapper.create(`[\\${_RE_SPECIAL_CHARS.join('\\')}]`);
|
||||
export function containsRegexp(input: string): RegExp {
|
||||
return RegExpWrapper.create(
|
||||
StringWrapper.replaceAllMapped(input, _ESCAPE_RE, (match) => `\\${match[0]}`));
|
||||
StringWrapper.replaceAllMapped(input, _ESCAPE_RE, (match) => `\\${match[0]}`));
|
||||
}
|
||||
|
||||
|
@ -2,13 +2,7 @@
|
||||
* Public Test Library for unit testing Angular2 Applications. Uses the
|
||||
* Jasmine framework.
|
||||
*/
|
||||
import {
|
||||
inject,
|
||||
async,
|
||||
injectAsync,
|
||||
TestInjector,
|
||||
getTestInjector
|
||||
} from './test_injector';
|
||||
import {inject, async, injectAsync, TestInjector, getTestInjector} from './test_injector';
|
||||
|
||||
import {isPromise} from '../src/facade/lang';
|
||||
|
||||
|
Reference in New Issue
Block a user