Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

fix(packageJson): #283 change trimmed minErr #286

Closed
wants to merge 1 commit into from
Closed

fix(packageJson): #283 change trimmed minErr #286

wants to merge 1 commit into from

Conversation

jerryorta-dev
Copy link

Fix for #283, once angular-loader is copied into index-async.html, $minErr is replaced by $$minErr.

@djamegoldston
Copy link

Thank you @jerryorta-dev

gkalpak added a commit to gkalpak/angular-seed that referenced this pull request Jun 17, 2016
When using `'...'.replace(regex, replacement)`, any instances of `$$` inside `replacement` will be
converted to `$` (see
[mdn](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace#Specifying_a_string_as_a_parameter).
Thus, for example `$$minErr` and `$$moduleName` are converted to `$minErr` and `$moduleName`.
This commit fixes it, by first converting `$$` to `$$$$`.

Fixes angular#283
Closes angular#286
gkalpak added a commit to gkalpak/angular-seed that referenced this pull request Jun 17, 2016
When using `'...'.replace(regex, replacement)`, any instances of `$$` inside `replacement` will be
converted to `$` (see
[mdn](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace#Specifying_a_string_as_a_parameter).
Thus, for example `$$minErr` and `$$moduleName` are converted to `$minErr` and `$moduleName`.
This commit fixes it, by first using `'...'.split(regex).join(replacement)` instead.

Fixes angular#283
Closes angular#286
gkalpak added a commit to gkalpak/angular-seed that referenced this pull request Jun 17, 2016
When using `'...'.replace(regex, replacement)`, any instances of `$$` inside `replacement` will be
converted to `$` (see
[mdn](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace#Specifying_a_string_as_a_parameter).
Thus, for example `$$minErr` and `$$moduleName` are converted to `$minErr` and `$moduleName`.
This commit fixes it, by first using `'...'.split(regex).join(replacement)` instead.

Fixes angular#283
Closes angular#286
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants