Last active
December 14, 2015 15:18
-
-
Save kmdsbng/5106358 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ':/?*[]\ は削除する | |
| # 31文字以内に切り詰める | |
| # http://support.microsoft.com/kb/436482/ja | |
| def normalize_excel_sheet_name(str) | |
| str.gsub(/[':\/?*\[\]]/, '').slice(0, 31) | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment