Skip to content

Commit

Permalink
fix: be greedy when replacing d.ts imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Shlomi Assaf (shlassaf) committed Aug 21, 2016
1 parent fe3c580 commit 2347cf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gulp/relative-imports.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const visitCallExpression = (function() {


function tsDefinitionImportRename() {
const CORE_IMPORT_REGEX = /^(import {.+} from ['"])(.*\/components\/angular2-modal)(['"];?)$/m;
const CORE_IMPORT_REGEX = /^(import {.+} from ['"])(.*\/components\/angular2-modal)(['"];?)$/mg;
return replace(CORE_IMPORT_REGEX, `$1${CORE_PACKAGE_NAME}$3`);
}

Expand Down

0 comments on commit 2347cf2

Please sign in to comment.