Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Replace ugly regular expression with utility function.

  • Loading branch information...
commit 4e9edcd62682baa094a9991d1e82cbf27133885c 1 parent db765f3
@andrewschleifer andrewschleifer authored
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}"))
Please sign in to comment.
Something went wrong with that request. Please try again.