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

function angular.$$minErr is trimmed to $minErr when run update-index-async #283

Closed
jerryorta-dev opened this issue Jul 8, 2015 · 0 comments

Comments

@jerryorta-dev
Copy link

When running npm run update-index-async, $$minErr is trimmed to $minErr when angular-loader.min.js is copied to index-async.html

gkalpak added a commit to gkalpak/angular-seed that referenced this issue 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 issue 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 issue 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 a pull request may close this issue.

1 participant