1
0
Fork 0
mirror of synced 2024-07-08 15:56:23 +12:00

Quick fix - no need to double check.

This commit is contained in:
mike12345567 2024-04-22 12:26:30 +01:00
parent adfe3b944b
commit 0266be8138

View file

@ -1235,8 +1235,8 @@ const shouldReplaceBinding = (currentValue, from, convertTo, binding) => {
// Don't replace if the value already matches the readable binding // Don't replace if the value already matches the readable binding
return currentValue.indexOf(binding.readableBinding) === -1 return currentValue.indexOf(binding.readableBinding) === -1
} else if (convertingToReadable) { } else if (convertingToReadable) {
// if the runtime and readable bindings are very similar, all we can do is check runtime is there // if the runtime and readable bindings are very similar we have to assume it should be replaced
return currentValue.indexOf(binding.runtimeBinding) !== -1 return true
} }
// remove all the spaces, if the input is surrounded by spaces e.g. [ Auto ID ] then // remove all the spaces, if the input is surrounded by spaces e.g. [ Auto ID ] then
// this makes sure it is detected // this makes sure it is detected