Skip to content

Commit e086974

Browse files
author
Dan Nguyen
committed
fix(factories): Only append remainder if the Apple-converted-space has matched
1 parent 950ed2d commit e086974

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

dist/textAngular.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -237,10 +237,10 @@ angular.module('textAngular.factories', [])
237237
finalHtml += html.substring(lastIndex, match.index) + appleSpaceVal;
238238
lastIndex = match.index + match[0].length;
239239
}
240-
finalHtml += html.substring(lastIndex);
241240
/* istanbul ignore next: apple-contereted-space span has matched */
242241
if (lastIndex) {
243242
// modified....
243+
finalHtml += html.substring(lastIndex);
244244
html=finalHtml;
245245
finalHtml='';
246246
lastIndex=0;

dist/textAngular.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/textAngular.umd.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1133,10 +1133,10 @@ angular.module('textAngular.factories', [])
11331133
finalHtml += html.substring(lastIndex, match.index) + appleSpaceVal;
11341134
lastIndex = match.index + match[0].length;
11351135
}
1136-
finalHtml += html.substring(lastIndex);
11371136
/* istanbul ignore next: apple-contereted-space span has matched */
11381137
if (lastIndex) {
11391138
// modified....
1139+
finalHtml += html.substring(lastIndex);
11401140
html=finalHtml;
11411141
finalHtml='';
11421142
lastIndex=0;

src/factories.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ angular.module('textAngular.factories', [])
4747
finalHtml += html.substring(lastIndex, match.index) + appleSpaceVal;
4848
lastIndex = match.index + match[0].length;
4949
}
50-
finalHtml += html.substring(lastIndex);
5150
/* istanbul ignore next: apple-contereted-space span has matched */
5251
if (lastIndex) {
5352
// modified....
53+
finalHtml += html.substring(lastIndex);
5454
html=finalHtml;
5555
finalHtml='';
5656
lastIndex=0;

0 commit comments

Comments
 (0)