Skip to content
Browse files

Replace ugly regular expression with utility function.

  • Loading branch information...
1 parent db765f3 commit 4e9edcd62682baa094a9991d1e82cbf27133885c @andrewschleifer andrewschleifer committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 tools/nuke
View
4 tools/nuke
@@ -426,7 +426,7 @@
(@xib_files each:
(do (xib)
(set baseName ((xib componentsSeparatedByString:"/") lastObject))
- (set targetFile (/xib$/ replaceWithString:"nib" inString:baseName))
+ (set targetFile (baseName stringByReplacingPathExtensionWith:"nib"))
(set nib "#{@application_resource_localized_dir}/#{targetFile}")
(file nib => xib @application_resource_localized_dir is
(SH "ibtool --errors --warnings --notices --output-format human-readable-text --compile #{nib} #{xib}"))
@@ -612,7 +612,7 @@
(@xib_files each:
(do (xib)
(set baseName ((xib componentsSeparatedByString:"/") lastObject))
- (set targetFile (/xib$/ replaceWithString:"nib" inString:baseName))
+ (set targetFile (baseName stringByReplacingPathExtensionWith:"nib"))
(set nib "#{@framework_resource_localized_dir}/#{targetFile}")
(file nib => xib @framework_resource_localized_dir is
(SH "ibtool --errors --warnings --notices --output-format human-readable-text --compile #{nib} #{xib}"))

0 comments on commit 4e9edcd

Please sign in to comment.
Something went wrong with that request. Please try again.