Skip to content

Commit f0f0797

Browse files
committed
Include double and single quote catching for score code conversion
1 parent b5609e3 commit f0f0797

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sasctl/utils/modelMigration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def convertScoreCode(zPath, scoreResource, pythonScoreCode):
102102
scoreCode = "import settings\n" + scoreCode
103103

104104
# Search for all directory paths in score code that contain the scoreResource
105-
oldString = re.findall(r"'\/.*?\.[\w:]+'", scoreCode)
105+
oldString = re.findall(r"['\"]\/.*?\.[\w:]+['\"]", scoreCode)
106106
oldString = [s for s in oldString if scoreResource in s]
107107
# Remove duplicates, as .replace() checks for all instances
108108
oldString = list(set(oldString))

0 commit comments

Comments
 (0)