Skip to content

Commit

Permalink
fix: support _this10 and over
Browse files Browse the repository at this point in the history
  • Loading branch information
theKashey committed Jun 9, 2018
1 parent 8189dd4 commit bb47ca4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/proxy/inject.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ function inject(target, currentGeneration, injectedMembers) {
try {
if (hasRegenerate) {
const usedThis =
String(injectedMembers[key]).match(/_this([\d])/gi) || []
String(injectedMembers[key]).match(/_this([\d]+)/gi) || []
target[REGENERATE_METHOD](
key,
`(function REACT_HOT_LOADER_SANDBOX () {
Expand Down

0 comments on commit bb47ca4

Please sign in to comment.